|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
CauchoNode extends the DOM, providing namespace support and input file support.
Application can print the filename and line number where the error occurred.
| Fields inherited from interface org.w3c.dom.Node |
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE |
| Method Summary | |
boolean |
checkValid()
For testing... |
java.lang.String |
getCanonicalName()
Returns the node's canonical name. |
int |
getColumn()
Returns the source column of this node. |
java.lang.String |
getFilename()
Returns the source filename of this node. |
int |
getLine()
Returns the source line of this node. |
java.lang.String |
getLocalName()
Returns the local part of the qualified name of this node. |
java.lang.String |
getNamespaceURI()
The namespace URI of this node, or null if it is
unspecified. |
java.lang.String |
getPrefix()
The namespace prefix of this node, or null if it is
unspecified. |
java.lang.String |
getTextValue()
Returns the text value of the node |
void |
print(WriteStream os)
Prints the node to a stream |
void |
printHtml(WriteStream os)
Prints the node as html to a stream |
void |
printPretty(WriteStream os)
Pretty-prints the node to a stream |
void |
setLocation(java.lang.String filename,
int line,
int column)
Sets the location |
| Methods inherited from interface org.w3c.dom.Node |
appendChild, cloneNode, getAttributes, getChildNodes, getFirstChild, getLastChild, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPreviousSibling, hasAttributes, hasChildNodes, insertBefore, isSupported, normalize, removeChild, replaceChild, setNodeValue, setPrefix |
| Method Detail |
public java.lang.String getNamespaceURI()
Nodenull if it is
unspecified.
ELEMENT_NODE and
ATTRIBUTE_NODE and nodes created with a DOM Level 1
method, such as createElement from the
Document interface, this is always null.Per
the Namespaces in XML Specification an attribute does not inherit
its namespace from the element it is attached to. If an attribute is
not explicitly given a namespace, it simply has no namespace.getNamespaceURI in interface Nodepublic java.lang.String getPrefix()
Nodenull if it is
unspecified.
nodeName attribute, which holds the qualified name, as
well as the tagName and name attributes of
the Element and Attr interfaces, when
applicable.
namespaceURI and localName do not change.
ELEMENT_NODE and
ATTRIBUTE_NODE and nodes created with a DOM Level 1
method, such as createElement from the
Document interface, this is always null.getPrefix in interface Nodeorg.w3c.dom.NodeDOMException - INVALID_CHARACTER_ERR: Raised if the specified prefix contains an
illegal character, per the XML 1.0 specification .
prefix is
malformed per the Namespaces in XML specification, if the
namespaceURI of this node is null, if the
specified prefix is "xml" and the namespaceURI of this
node is different from "http://www.w3.org/XML/1998/namespace", if
this node is an attribute and the specified prefix is "xmlns" and
the namespaceURI of this node is different from "
http://www.w3.org/2000/xmlns/", or if this node is an attribute and
the qualifiedName of this node is "xmlns" .public java.lang.String getLocalName()
NodeELEMENT_NODE and
ATTRIBUTE_NODE and nodes created with a DOM Level 1
method, such as createElement from the
Document interface, this is always null.getLocalName in interface Nodepublic java.lang.String getCanonicalName()
e.g. for foo:bar:baz, the prefix name might be '{/caucho/1.0}baz'
public java.lang.String getTextValue()
public java.lang.String getFilename()
public int getLine()
public int getColumn()
public void setLocation(java.lang.String filename,
int line,
int column)
public void print(WriteStream os)
throws java.io.IOException
public void printPretty(WriteStream os)
throws java.io.IOException
public void printHtml(WriteStream os)
throws java.io.IOException
public boolean checkValid()
throws java.lang.Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||